package com.tydic.portal.domain.bo;

import com.tydic.common.core.validate.AddGroup;
import com.tydic.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * portal登录请求参数
 */
@Data
public class PortalLoginBo implements Serializable {
    @Serial
    private static final long serialVersionUID = -1223899843017925616L;
    /**
     * 账号
     */
    @NotBlank(message = "登录账号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "登录密码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String password;
    /**
     * 图片验证码
     */
    @NotBlank(message = "图片验证码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String imageCode;
    /**
     * 用户类型
     */
    private String userType;
}
